package com.chumi.bootstrap.controller.table;

import java.io.IOException;
import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.chumi.bootstrap.model.standard.tsys.TSysUser;
import com.chumi.bootstrap.service.tsys.TSysUserService;
import com.llsfw.core.controller.base.BaseController;

@Controller
@RequestMapping("TableController")
public class TableController  extends BaseController{
    @Autowired
    private TSysUserService tsus;
    
    @RequestMapping("getData")
	@ResponseBody
    public List<TSysUser> getData(HttpServletRequest request) throws IOException{
    	List<TSysUser> userlist = tsus.selectUser();
		return userlist; 
    }    
}
